package com.atguigu.gmall.feign.item;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.item.to.SkuDetailTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:lyd
 * @Date:2023/8/18 20:05
 * @Version:1.0
 * @Description
 **/
@FeignClient("service-item")
public interface SkuDetailFeignClient {


    @RequestMapping("/api/inner/item/detail/{skuId}")
    Result<SkuDetailTO> getSkuDetail(@PathVariable("skuId") Long skuId);
}
